#ifndef _lj_
#define _lj_

#include "lj_proto_usart.h"

#define LJ_PRODUCT_KEY_MAXLEN (20)
#define LJ_DEVICE_NAME_MAXLEN (32)
#define LJ_DEVICE_SECRET_MAXLEN (64)
#define LJ_DEVICE_ID_MAXLEN (20)

#define UART_BUFFER_LENGTH 256
#define STACK_SIZE_UART_RECV_THREAD 1024
#define UART_RECV_TIMEOUT 100
#define UART_ONE_PACKAGE_LENGTH 20

extern  int lj_usart_init(void);
extern  void demo_pkt_st_init(void);
extern unsigned short ljhf_usend(unsigned char *buf,unsigned short buf_len);
extern void lj_u_thread(void *params);

extern unsigned int all_timestamp;
extern unsigned char  need_send_get_time;
extern lj_time_t all_time_t;
extern void zzc_set_time(lj_time_t * time_st,unsigned int timestamp);


extern void time_cb( const char *ntp_offset_time_ms);
extern void do_zijain(void);
extern unsigned char ljhf_restart(void);

extern void lj_tianjun_control(unsigned char *buf,unsigned int len);

extern void lj_set_load(void);

#endif


